<template>
  <div>
    <h1>Count</h1>
    <button @click="showAttrs($attrs)">按钮</button>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Count",
});
</script>

<script setup lang="ts">
defineProps<{
  a: number;
}>();
const showAttrs = (attrs: any) => {
  console.log(attrs);
};
</script>

<style scoped lang="scss"></style>
